all:chat_client window chat_client_main

chat_client_main:chat_client_main.cc chat_client.cc window.cc
	g++ $^ -o $@ -lpthread -ljsoncpp -std=c++11 -lncursesw
chat_client:chat_client.cc
	g++ $^ -o $@ -lpthread -ljsoncpp -std=c++11 -DTEST_CHAT_CLIENT
window:window.cc
	g++ $^ -o $@ -lpthread -lncursesw -std=c++11 -DTEST_WINDOW

.PHONY:clean
clean:
	rm chat_client chat_client_main window
